<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <body>
        <ui:composition template="default_layout.xhtml">
            <ui:define name="IM">
                <div id="topo" style="" >
                    <div id="login">
                        <h:form id="fLoginLogado">
                            <h:outputLabel for="itNomeLogadoLabel" value="Login: "/>
                            <h:outputText id="itNomeLogado" value="#{usuarioLogadoJsfBean.usuarioLogado.nome}" style="width:70px;"/>
                        </h:form>
                        
                    </div>
                </div>
            </ui:define>
            <ui:define name="top">
                <p:menubar autoSubmenuDisplay="true" effect="NONE"
                           effectDuration="0" >
                    <p:submenu label="Arquivo">
                        <p:menuitem value="Categorias" url="list_cat.xhtml"/>
                        <p:menuitem value="Itens" url="list_item.xhtml"/>
                    </p:submenu>

                    <p:submenu label="Editar">
                        <p:menuitem value="Editar" url=".xhtml"/>
                    </p:submenu>

                    <p:submenu label="Exibir">
                        <p:menuitem value="Editar" url=".xhtml"/>
                    </p:submenu>

                    <p:submenu label="Operacional">
                        <p:menuitem value="Editar" url=".xhtml"/>
                    </p:submenu>
                    <p:submenu label="Faturamento">
                        <p:menuitem value="Editar" url=".xhtml"/>
                    </p:submenu>
                    <p:submenu label="NF-e">
                        <p:menuitem value="Editar" url=".xhtml"/>
                    </p:submenu>
                    <p:submenu label="Personalizados">
                        <p:menuitem value="Editar" url=".xhtml"/>
                    </p:submenu>
                    <p:submenu label="Financeiro">
                        <p:menuitem value="Editar" url=".xhtml"/>
                    </p:submenu>
                    <p:submenu label="Fisco">
                        <p:menuitem value="Editar" url=".xhtml"/>
                    </p:submenu>
                    <p:submenu label="Contabilidade">
                        <p:menuitem value="Editar" url=".xhtml"/>
                    </p:submenu>
                    <p:submenu label="Relatório">
                        <p:menuitem value="Editar" url=".xhtml"/>
                    </p:submenu>
                    <p:submenu label="Janelas">
                        <p:menuitem value="Editar" url=".xhtml"/>
                    </p:submenu>

                    <p:submenu label="Segurança" >
                        <p:menuitem value="Grupos" url="list_grupo.xhtml"/>
                        <p:menuitem value="Páginas" url="list_recurso.xhtml"/>
                        <p:menuitem value="Usuários" url="list_usuario.xhtml"/>
                    </p:submenu>
                    <p:submenu>
                        <f:facet name="label">
                            <p:menuitem value="Sair" url="login.xhtml" />
                        </f:facet>
                    </p:submenu>
                </p:menubar>

                <div id="titulo-pagina">
                    <ui:insert name="titulo-pagina">Título da Página</ui:insert>
                </div>
            </ui:define>


            <ui:define name="footer">
                <div id="info-rodape">
                    <h:panelGrid columns="1" cellpadding="0"  >
                        <h:outputText id="usu" value="Usuário: #{usuarioLogadoJsfBean.usuarioLogado.login} | Perfil: #{usuarioLogadoJsfBean.usuarioLogado.gruposAsString}" />
                    </h:panelGrid>
                </div>

            </ui:define>

        </ui:composition>
    </body>

    <ui:insert name="highlight">
        <script language="javascript" src="#{request.contextPath}/syntaxhighlighter/scripts/shCore.js"></script>
        <script language="javascript" src="#{request.contextPath}/syntaxhighlighter/scripts/shBrushXml.js"></script>
        <script language="javascript" src="#{request.contextPath}/syntaxhighlighter/scripts/shBrushJava.js"></script>
        <script language="javascript" src="#{request.contextPath}/syntaxhighlighter/scripts/shBrushCss.js"></script>
        <script language="javascript" src="#{request.contextPath}/syntaxhighlighter/scripts/shBrushJScript.js"></script>
        <script language="css" src="#{request.contextPath}/syntaxhighlighter/styles/syntaxhighlighter.css"></script>
        <script language="javascript">
			dp.SyntaxHighlighter.ClipboardSwf = '#{request.contextPath}/syntaxhighlighter/scripts/clipboard.swf';
			dp.SyntaxHighlighter.HighlightAll('code');
        </script>
    </ui:insert>

</html>